import Vuex from 'vuex'
import Vue from 'vue'

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        color:"",
        isCollapse:false,
        mark: {},
        defaultopen:"",//预览
    },
    mutations: {
        SET_COLOR: (state, color) => {
            state.color = color
        },
        SET_ISCOLLAPSE: (state, isCollapse) => {
            state.isCollapse = isCollapse
        },
        SET_MARK: (state, mark) => {
            state.mark = mark
        },
        SET_DEFAULTOPEN: (state, defaultopen) => {
            state.defaultopen = defaultopen
        }
    }

})